import ajax from './ajax.js';


const baseUrl = '/qa-question'

export function questionPage(vo) {
	return ajax({
		url: `${baseUrl}/page`,
		method: 'post',
		data: vo,
	})
}

export  function questionGet(key) {
	return ajax({
		url: `${baseUrl}/${key}`,
		method: 'get',
	})
}

export function esList(keyword) {
	return ajax({
		url: `${baseUrl}/es/list?keyword=${keyword}`,
		method: 'get'
	})
}